package com.aspose.cells;

import java.util.ArrayList;

class zor {
   ArrayList a;
   byte[] b;
   private Area f;
   private Line g;
   private Marker h;
   private zjc i;
   private boolean j = false;
   private boolean k = false;
   boolean c = false;
   private Object l;
   private boolean m = true;
   boolean d;
   private int n;
   int e = 0;
   private boolean o = false;

   zor(Object var1) {
      this.l = var1;
   }

   void a(Object var1) {
      this.m = false;
   }

   boolean a() {
      return this.m;
   }

   void a(boolean var1) {
      this.m = var1;
   }

   int b() {
      if (this.l instanceof Series) {
         return ((Series)this.l).getType();
      } else if (this.l instanceof ChartPoint) {
         return ((ChartPoint)this.l).b();
      } else {
         return this.l instanceof ziz ? ((ziz)this.l).j() : 14;
      }
   }

   public int c() {
      if (!this.d) {
         switch(this.b()) {
         case 9:
         case 10:
         case 11:
         case 17:
         case 18:
         case 19:
         case 20:
            return 0;
         case 12:
         case 13:
         case 14:
         case 15:
         case 16:
         case 35:
         case 36:
         case 37:
         case 38:
         case 39:
         case 40:
         case 41:
         case 42:
         case 43:
         case 44:
         case 45:
         case 46:
         case 47:
         case 48:
         case 49:
         default:
            return this.n;
         case 21:
         case 22:
         case 23:
         case 24:
         case 25:
         case 26:
         case 27:
            return 4;
         case 28:
         case 29:
         case 30:
         case 31:
         case 32:
         case 33:
         case 34:
            return 3;
         case 50:
         case 51:
         case 52:
         case 53:
         case 54:
         case 55:
         case 56:
            return 1;
         }
      } else {
         return this.n;
      }
   }

   public void a(int var1) {
      if (ChartCollection.j(this.b())) {
         this.d = true;
         this.n = var1;
      }

   }

   void b(int var1) {
      this.d = true;
      this.n = var1;
   }

   int d() {
      return this.n;
   }

   void a(zor var1, CopyOptions var2) {
      this.e = var1.e;
      this.k = var1.k;
      this.j = var1.j;
      this.o = var1.o;
      this.n = var1.n;
      this.d = var1.d;
      this.m = var1.m;
      this.c = var1.c;
      if (var1.f != null) {
         this.u();
         this.f.a(var1.f, var2);
      }

      if (var1.g != null) {
         this.v();
         this.g.a(var1.g);
      }

      if (var1.h != null) {
         this.w();
         this.h.a(var1.h, var2);
      }

      if (var1.i != null) {
         this.i = new zjc(this);
         this.i.a(var1.i);
      }

      this.b = var1.b;
      if (var1.a != null && var1.a.size() > 0) {
         this.a = new ArrayList();

         for(int var3 = 0; var3 < var1.a.size(); ++var3) {
            com.aspose.cells.b.a.a.ze.a(this.a, var1.a.get(var3));
         }
      }

   }

   Area e() {
      this.u();
      return this.f;
   }

   Line f() {
      this.v();
      return this.g;
   }

   Line g() {
      return this.g;
   }

   Area h() {
      return this.f;
   }

   zjc i() {
      return this.i;
   }

   Marker j() {
      this.w();
      return this.h;
   }

   Marker k() {
      return this.h;
   }

   zjc l() {
      if (this.i == null) {
         this.i = new zjc(this);
      }

      return this.i;
   }

   boolean m() {
      return this.j;
   }

   void b(boolean var1) {
      this.j = var1;
      this.e |= 2;
      this.a(false);
   }

   boolean n() {
      return (this.e & '\uffff' & 2) != 0;
   }

   void c(boolean var1) {
      if (var1) {
         this.e |= 2;
      } else {
         this.e |= 65533;
      }

   }

   boolean o() {
      return this.k;
   }

   void d(boolean var1) {
      this.k = var1;
      this.e |= 1;
      this.a(false);
   }

   boolean p() {
      return (this.e & '\uffff' & 1) != 0;
   }

   void e(boolean var1) {
      if (var1) {
         this.e |= 1;
      } else {
         this.e |= 65534;
      }

   }

   boolean q() {
      return this.o;
   }

   void f(boolean var1) {
      this.o = var1;
      this.a(false);
   }

   Chart r() {
      if (this.l == null) {
         return null;
      } else if (this.l instanceof ChartPoint) {
         return ((ChartPoint)this.l).a().h().d();
      } else if (this.l instanceof Series) {
         return ((Series)this.l).h().d();
      } else {
         return this.l instanceof ziz ? ((ziz)this.l).a().a() : null;
      }
   }

   private void u() {
      if (this.f == null) {
         this.f = new Area(this.r(), this);
         if (this.l != null && this.l instanceof Series) {
            Series var1 = (Series)this.l;
            ziz var2 = var1.s();
            if (var2 != null && var2.d() != null) {
               Area var3 = var2.d().h();
               if (var3 != null) {
                  this.f.a(var3, (CopyOptions)null);
               }
            }
         }
      }

   }

   private void v() {
      if (this.g == null) {
         this.g = new Line(this.r(), this);
         if (this.l != null && this.l instanceof Series) {
            Series var1 = (Series)this.l;
            ziz var2 = var1.s();
            if (var2 != null && var2.d() != null) {
               Line var3 = var2.d().g();
               if (var3 != null) {
                  this.g.a(var3);
               }
            }
         }
      }

   }

   private void w() {
      if (this.h == null) {
         this.h = new Marker(this.l, this);
         if (this.l != null && this.l instanceof Series) {
            Series var1 = (Series)this.l;
            ziz var2 = var1.s();
            if (var2 != null && var2.d() != null) {
               Marker var3 = var2.d().k();
               if (var3 != null) {
                  this.h.a(var3, (CopyOptions)null);
               }
            }
         }
      }

   }

   void s() {
      switch(this.b()) {
      case 12:
         this.v();
         this.j().b(this.b());
         break;
      case 13:
         this.k = true;
         this.e(true);
         this.v();
         this.u();
         this.j().b(this.b());
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
      case 23:
      case 24:
      case 25:
      case 26:
      case 27:
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 33:
      case 34:
      case 40:
      case 41:
      case 42:
      case 43:
      case 45:
      case 46:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 58:
      case 59:
      case 63:
      default:
         break;
      case 35:
      case 36:
      case 47:
      case 48:
         this.i = new zjc(this);
         break;
      case 37:
      case 38:
      case 39:
      case 57:
         this.j().b(this.b());
         break;
      case 44:
         this.i = new zjc(this);
         this.i.a(0);
         break;
      case 60:
         this.f().setVisible(false);
         this.j().b(this.b());
         break;
      case 61:
      case 62:
         this.j = true;
         this.c(true);
         this.v();
         this.j().b(this.b());
         break;
      case 64:
         this.v();
         this.j().b(this.b());
      }

   }

   Object t() {
      return this.l;
   }
}
